package com.zhika.zishi.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.zhika.zishi.R;
import com.zhika.zishi.customview.TitleView;
import com.zhika.zishi.interfaces.TitleInterface;
import com.zhika.zishi.util.LogUtil;

/**
 * Created by shi-02 on 2015/4/23.
 */
public class NewCompareActivity extends BaseActivity {

    private final String TAG = "NewCompareActivity";

    private TitleView titleView;

    private ImageView addMeImageView;

    private ImageView addOthersImageView;

    private LinearLayout referLayout;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.new_compare_show);
        initView();
    }

    private void initView(){
        titleView = (TitleView) findViewById(R.id.new_compare_show_title_view);
        titleView.setLeftButtonText("返回");
        titleView.setMiddleRowText("对比秀");
        titleView.hideRightButton();
        titleView.setTitleViewInterface(new TitleInterface() {
            @Override
            public void leftTitleListener() {
                finish();
            }

            @Override
            public void middleTitleListener() {

            }

            @Override
            public void rightTitleListener() {

            }
        });

        addMeImageView = (ImageView) findViewById(R.id.new_compare_add_me_image_view);
        addMeImageView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(NewCompareActivity.this,SelectPictureActivity.class);
                startActivity(intent);
                LogUtil.e(TAG,"被点击了");
            }
        });

        referLayout = (LinearLayout) findViewById(R.id.new_compare_refer_layout);
        referLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(NewCompareActivity.this,MySelfLikeStrategyActivity.class);
                startActivity(intent);
            }
        });

        addOthersImageView = (ImageView) findViewById(R.id.new_compare_add_others_image_view);
        addOthersImageView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(NewCompareActivity.this,LikeStrategyPictureActivity.class);
                startActivity(intent);
            }
        });
    }
}
